home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libgphoto2-2.postinst < prev    next >
Text File  |  2008-09-23  |  796b  |  38 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. # Automatically added by dh_makeshlibs
  5. if [ "$1" = "configure" ]; then
  6.     ldconfig
  7. fi
  8. # End automatically added section
  9.  
  10.  
  11. PACKAGE="libgphoto2"
  12.  
  13. case "$1" in
  14.     configure)
  15.     # create FDI file
  16.     mkdir -p /usr/share/hal/fdi/preprobe/10osvendor/ || true
  17.     /usr/lib/$PACKAGE/print-camera-list hal-fdi > \
  18.         /usr/share/hal/fdi/preprobe/10osvendor/20-$PACKAGE.fdi
  19.     
  20.     # remove old fdi files
  21.     rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE.fdi
  22.     rm -f /usr/share/hal/fdi/information/20thirdparty/$PACKAGE.fdi
  23.     rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE-device.fdi
  24.     ;;
  25.  
  26.     abort-upgrade|abort-remove|abort-deconfigure)
  27.         ;;
  28.  
  29.     *)
  30.         echo "postinst called with unknown argument \`$1'" >&2
  31.         exit 1
  32.         ;;
  33. esac
  34.  
  35.  
  36. exit 0
  37.  
  38.